package com.hzy.fivepalace.db.service;

import com.hzy.fivepalace.db.dao.ex.DtsHtmlMapperEx;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 静态页面服务
 */
@Service
public class DtsHtmlService {

    @Resource
    private DtsHtmlMapperEx htmlMapperEx;

    public String getHtmlContentByType(Integer type) {

        String content = htmlMapperEx.getHtmlContentByType(type);
        if (StringUtils.isBlank(content)) {
            content = "系统未配置";
        }
        return content;
    }
}
